﻿<%@ Page Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeBehind="UserEdit.aspx.cs"
    Inherits="WebAppAuthAdmin.App.UserEdit" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <h2>
        <asp:Image Width="15px" Height="15px" ID="imgExpandResults" CssClass="imgExpand"
            ImageUrl="/Images/icon_blockexpanded.png" runat="server" ClientIDMode="Static"
            alt="" onclick="window.AppCommonObj.toggleVisibility(this.id, 'divResult');" />
        Detalle de Usuario
    </h2>
    <div class="editionContainerFilter" id="divResult">
        <div class="clear">
        </div>
        <p>
            <span class="title">Aplicaci&oacute;n:</span>
            <asp:Label ID="txtAplicacion" runat="server" Text="" CssClass="txtLbl"></asp:Label>
        </p>
        <div class="clear">
        </div>
        <p>
            <span class="title">User Name:</span>
             <asp:TextBox ID="txtUserName" runat="server" CssClass="inputs inputlong" ClientIDMode="Static"></asp:TextBox>
        </p>
        <div class="clear">
        </div>
        <p>
            <span class="title">Nombre:</span>
            <asp:TextBox ID="txtNombreUsuario" runat="server" CssClass="inputs inputlong" ClientIDMode="Static"></asp:TextBox>
        </p>
        <div class="clear">
        </div>
        <p>
            <span class="title">Tiene Password local?:</span>
            <asp:Label ID="lblHasPassword" runat="server" Text="" CssClass="txtLbl"></asp:Label>
        </p>      
        <p>
            <span class="title secondColumn">Password:</span>
            <asp:TextBox ID="txtPassword" TextMode="Password" runat="server" CssClass="inputs inputlong"
                ClientIDMode="Static"></asp:TextBox>
        </p>
        <div class="clear">
        </div>
        <p>
            <span class="title">Incluido en Aplicación:</span>
            <asp:CheckBox ID="chkIncluido" runat="server" Enabled="false" />
        </p>
         <div class="clear">
        </div>
        <p>
            <span class="title">Bloqueado:</span>
            <asp:CheckBox ID="chkUserBloqueado" runat="server" />
        </p>
        <div class="clear">
        </div>
    </div>
    <h2>
        <asp:Image Width="15px" Height="15px" ID="Image1" CssClass="imgExpand" ImageUrl="/Images/icon_blockexpanded.png"
            runat="server" ClientIDMode="Static" alt="" onclick="window.AppCommonObj.toggleVisibility(this.id, 'pnlRoles');" />
            Roles
    </h2>
    <asp:Panel ID="pnlRoles" runat="server" CssClass="editionContainerEdition" ClientIDMode="Static">
        <asp:HiddenField ID="hidCheckedRows" runat="server" ClientIDMode="Static" />
        <asp:GridView ID="Grid" runat="server" CellPadding="4" ForeColor="#333333"
            OnRowDataBound="Grid_RowDataBound" GridLines="None" AutoGenerateColumns="False"
            DataKeyNames="Id" Width="100%">
            <AlternatingRowStyle BackColor="White" />
            <Columns>
                <asp:TemplateField HeaderText="Incluir">
                    <HeaderStyle HorizontalAlign="Center" Width="30px" />
                    <ItemStyle HorizontalAlign="Center" />
                    <HeaderTemplate>
                        <asp:CheckBox ID="chkSelect" runat="server" CssClass="chkSelectRowHeader" />
                    </HeaderTemplate>
                    <ItemTemplate>
                        <asp:CheckBox ID="chkSelectRow" runat="server" CssClass="chkSelectRow" onclick="javascript:window.AppCommonObj.HandleCheckRow(this);" />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Id">
                    <HeaderStyle CssClass="displayNone" />
                    <ItemStyle CssClass="displayNone" />
                    <HeaderTemplate>
                        <span class="displayNone"></span>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <input id="hidenInputRowId_<%# Eval("Id")%>" value="<%# Eval("Id")%>" class="gridid" />
                    </ItemTemplate>
                </asp:TemplateField>              
                <asp:BoundField DataField="Name" HeaderText="Rol">
                    <HeaderStyle HorizontalAlign="Left" />
                </asp:BoundField>               
            </Columns>
            <EditRowStyle BackColor="#2461BF" />
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#4b6c9e" Font-Bold="True" ForeColor="White" HorizontalAlign="Left" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#EFF3FB" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#F5F7FB" />
            <SortedAscendingHeaderStyle BackColor="#6D95E1" />
            <SortedDescendingCellStyle BackColor="#E9EBEF" />
            <SortedDescendingHeaderStyle BackColor="#4870BE" />
        </asp:GridView>
    </asp:Panel>
     <%-- <h2>
        <asp:Image Width="15px" Height="15px" ID="Image2" CssClass="imgExpand" ImageUrl="/Images/icon_blockexpanded.png"
            runat="server" ClientIDMode="Static" alt="" onclick="window.AppCommonObj.toggleVisibility(this.id, 'pnlOperaciones');" />
            Operaciones
    </h2>
    <asp:Panel ID="pnlOperaciones" runat="server" CssClass="editionContainerEdition" ClientIDMode="Static">       
        <asp:CheckBoxList ID="chkOperaciones" runat="server" RepeatLayout="UnorderedList"
            RepeatDirection="Vertical" CssClass="chkList">
        </asp:CheckBoxList>
    </asp:Panel>--%>
    <br />
    <asp:LinkButton ID="lnkGuardar" runat="server" OnClick="lnkGuardar_Click" CssClass="guardar">Guardar</asp:LinkButton>

     <script type='text/javascript'>

         $(document).ready(function () {

             if (!window.AppCommonObj) {
                 window.AppCommonObj = new AppCommon();
             }
         });

    </script>

</asp:Content>
